//
//  ByApiUser.h
//  caipiao_ios
//
//  Created by mc on 2018/7/10.
//  Copyright © 2018年 ZhangZhanbin. All rights reserved.
//

#import "ByNetBaseApi.h"
#define code_log_debug 1

#if code_log_debug == 1
#define CodeLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define CodeLog(...)
#endif
@interface ByApiUser : ByNetBaseApi

/** 登陆 */
+ (void)wechatLogin:(ByNetParamsModel *)model
            success:(void(^)(ByNetBaseResult *result))success
            failure:(void(^)(ByNetBaseResult *result))failure;



//用户普通信息更新
+ (void)userInfoUpdate:(ByNetParamsModel *)model
               success:(void(^)(ByNetBaseResult *result))success
               failure:(void(^)(ByNetBaseResult *result))failure;

//头像上传
+ (void)userFileUploadAvatar:(UIImage *)image
                     success:(void(^)(ByNetBaseResult *result))success
                     failure:(void(^)(ByNetBaseResult *result))failure;


//短信验证码发送接口
+ (void)smsSendCode:(ByNetParamsModel *)model
            success:(void(^)(ByNetBaseResult *result))success
            failure:(void(^)(ByNetBaseResult *result))failure;


//用户手机号绑定
+ (void)userBindPhone:(ByNetParamsModel *)model
              success:(void(^)(ByNetBaseResult *result))success
              failure:(void(^)(ByNetBaseResult *result))failure;

//用户更换手机号
+ (void)userChangeMobile:(ByNetParamsModel *)model
                 success:(void(^)(ByNetBaseResult *result))success
                 failure:(void(^)(ByNetBaseResult *result))failure;

//是否注册过微信
+ (void)wechatIsRegister:(ByNetParamsModel *)model
                 success:(void(^)(ByNetBaseResult *result))success
                 failure:(void(^)(ByNetBaseResult *result))failure;



//登录接口
+ (void)userAccountLogin:(ByNetParamsModel *)model
                 success:(void(^)(ByNetBaseResult *result))success
                 failure:(void(^)(ByNetBaseResult *result))failure;


//注册接口
+ (void)userAccountRegister:(ByNetParamsModel *)model
                    success:(void(^)(ByNetBaseResult *result))success
                    failure:(void(^)(ByNetBaseResult *result))failure;


@end
